import axios from 'axios';
let base = '/api';

export const requestLogin = params => { return axios.post(`${base}/login`, params).then(res => res.data); };
export const getQrUrl = (params) => { return axios.post(`${base}/getUrl/url`,params)};
export const queryResult = (params) => { return axios.post(`${base}/queryResult`,params)};
export const queryRemainCode = () => { return axios.post(`${base}/getUrl/queryRemainCode`)};
export const queryAllCode = () => { return axios.post(`${base}/getUrl/queryAllCode`)};
export const queryList = (params) => { return axios.post(`${base}/admin/queryList`,params)};
export const payDetails = (params) => { return axios.post(`${base}/admin/payDetails`,params)};
export const queryDetails = (params) => { return axios.post(`${base}/admin/queryDetails`,params)};
export const downPayList = (params) => { return axios.post(`${base}/down/payList`,params,{responseType:'blob'})};
export const downUserList = (params) => { return axios.post(`${base}/down/userList`,params,{responseType:'blob'})};